projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93e5d83
)
wayland: Emit monitors-changed when monitors change
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 27 Mar 2013 01:37:21 +0000
(21:37 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 27 Mar 2013 01:37:21 +0000
(21:37 -0400)
gdk/wayland/gdkscreen-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkscreen-wayland.c
b/gdk/wayland/gdkscreen-wayland.c
index 1acc81aa3de86d2a43030b5162fe66c624ab4dfb..6d5f317aa20e89f9cddfa17b998d85941ddf4622 100644
(file)
--- a/
gdk/wayland/gdkscreen-wayland.c
+++ b/
gdk/wayland/gdkscreen-wayland.c
@@
-876,6
+876,9
@@
output_handle_geometry(void *data,
*/
if (display->init_ref_count > 0)
display->init_ref_count--;
+
+ if (monitor->geometry.width != 0)
+ g_signal_emit_by_name (monitor->screen, "monitors-changed");
}
static void
@@
-894,6
+897,8
@@
output_handle_mode(void *data,
monitor->geometry.width = width;
monitor->geometry.height = height;
+ g_signal_emit_by_name (monitor->screen, "monitors-changed");
+
monitor->screen->width =
MAX (monitor->screen->width, monitor->geometry.x + width);
monitor->screen->height =